{% extends "layout.html" %}
{% block body %}
	<div class="row" id="content">
		<div class="col-sm-6" style="margin-left: 5px">

{% from "security/_custommacros.html" import render_field_with_errors, render_field,display_field_errors %}

  <p>Ecotaxa 版本 : {{   GetEcotaxaVersionText() }}</p>
  <h3>注册</h3>
      <br><br>
      <a href='/register' class="btn btn-success btn-lg"><span class="fas fa-user-plus"></span>&nbsp;&nbsp;创建你的EcoTaxa账号</a>

				<p style="margin-top: 20px;font-size: small;">若注册遇到问题，请联系管理员: {{ GetAppManagerMailto()|safe }}.</p>
				
				
    <!-- <a href="/privacy">Our privacy statement</a> -->
		</div>

		<div class="col-sm-5">

    <form class="form-signin" action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
  {{ login_user_form.hidden_tag() }}

				<h3>登录</h3>

				<div class="form-group">
        <label for="inputEmail" class="sr-only">Email address</label>
        <input name="email" id="email" class="form-control" placeholder="Email address" required autofocus>
        {{ display_field_errors(login_user_form.email) }}
				</div>
			
				<div class="form-group">
        <label for="inputPassword" class="sr-only">Password</label>
        <input type="password" name="password" id="password" class="form-control" placeholder="Password" required>
					{{ display_field_errors(login_user_form.password) }}
				</div>

        <div class="checkbox">
          <label>
            <input  id="remember" name="remember" type="checkbox" value="y"> 记住我
          </label>
        </div>
					
        <button class="btn btn-lg btn-primary btn-block" type="submit"><span class="fas fa-check"></span>&nbsp;&nbsp; 登录</button>
{#  {{ render_field(login_user_form.next) }}#}

</form>
{% include "security/_menu.html" %}


		</div>
	</div> <!-- /content -->
{% endblock %}